export default [
  {
    path: '*',
    redirect: '/404'
  },
  {
    name: '404',
    path: '/404',
    component: () => import('@/views/error/404'),
    meta: {
      title: '404错误-后台管理系统'
    }
  },
  {
    name: '500',
    path: '/500',
    component: () => import(/* webpackChunkName: "base" */'@/views/error/500'),
    meta: {
      title: '500错误-后台管理系统'
    }
  },
  {
    name: 'noBindIP',
    path: '/noBindIP',
    component: () => import(/* webpackChunkName: "base" */'@/views/error/NoBindIp'),
    meta: {
      title: '未绑定IP-后台管理系统'
    }
  },
  {
    name: 'maintain',
    path: '/maintain',
    component: () => import(/* webpackChunkName: "base" */'@/views/error/Maintain'),
    meta: {
      title: '系统维护中...'
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/Index')
  },
  {
    path: '/demo',
    name: 'Demo',
    component: () => import('@/views/Demo')
  },
  {
    path: '',
    component: () => import('@/views/Index'),
    redirect: '/tenant/planManage',
    children: [
      {
        path: '/tenant',
        name: 'tenant',
        component: () => import('@/views/IndexNavSecond'),
        children: [
          {
            path: 'memberAccounts',
            name: 'memberAccounts',
            component: () => import('@/views/member/MemberAccounts'),
            meta: {
              title: '系统用户-后台管理系统'
            }
          },
          {
            path: 'memberOtherAccounts',
            name: 'memberOtherAccounts',
            component: () => import('@/views/member/MemberOtherAccounts'),
            meta: {
              title: '第三方系统用户-后台管理系统'
            }
          },
          {
            path: 'planManage',
            name: 'planManage',
            component: () => import('@/views/lottery/PlanManage'),
            meta: {
              title: '创建计划-后台管理系统'
            }
          },
          {
            path: 'planK3',
            name: 'planK3',
            component: () => import('@/views/lottery/PlanK3')
          },
          {
            path: 'planRB',
            name: 'planRB',
            component: () => import('@/views/lottery/PlanRB')
          }
        ]
      }
    ]
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]
